//
//  BSFooterRefreshView.m
//  BaiSi
//
//  Created by Sycamore on 16/5/7.
//  Copyright © 2016年 Sycamore. All rights reserved.
//

#import "BSFooterRefreshView.h"

@interface BSFooterRefreshView ()

@property (weak, nonatomic) IBOutlet UIButton *loadMoreButton;


@end

@implementation BSFooterRefreshView


- (void)awakeFromNib
{
    self.autoresizingMask = UIViewAutoresizingNone;
}

+ (instancetype)footerView
{
    return [[[NSBundle mainBundle]loadNibNamed:NSStringFromClass(self) owner:nil options:nil]lastObject];
}


//设置footer状态的改变
- (void)setIsLoading:(BOOL)isLoading
{
    _isLoading = isLoading;
    
    //正在加载的时候就隐藏，没有加载的时候就显示
    _loadMoreButton.hidden = isLoading;
}


@end
